package com.project.communitymanagement.service.impl;

import com.project.communitymanagement.common.BaseServiceImpl;
import com.project.communitymanagement.entity.TbEpidemic;
import com.project.communitymanagement.mapper.TbEpidemicMapper;
import com.project.communitymanagement.service.TbEpidemicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: epidemic-prevention-backend
 * @Package: com.project.communitymanagement.service.impl
 * @ClassName: TbEpidemicServiceImpl
 * @Author: "XGP"
 * @Description:
 * @Date: 2022/03/25 09:38
 * @Version: 1.0
 */
@Service
public class TbEpidemicServiceImpl  extends BaseServiceImpl<TbEpidemicMapper, TbEpidemic> implements TbEpidemicService {

    @Autowired
    private TbEpidemicMapper tbepidemicMapper;

    @Override
    protected TbEpidemicMapper mapper() {
        return tbepidemicMapper;
    }

    @Override
    protected TbEpidemic defaultModel() {
        return new TbEpidemic();
    }

    @Override
    public int updateArray(List<TbEpidemic> record) {
        return tbepidemicMapper.updateArray(record);
    }
}
